{template "content","header"}
{php //update_hits_cat() //更新点击统计频道id，需要时打开}
<div id="main">
	<div class="container clearfix">
		<div class="os_adr_left">
			<div class="top_content clearfix">
				<div class="block cate_nav">
					<div class="title">
						<h4></h4><h5 class="adr_related_title Android_title"><a href="{more_url(6)}" title="安卓刷机包|安卓ROM 专区"></a></h5>
					</div>
					<div class="block-content">
						<ul id="cate_menu">
							{pc:content action="category" catid="6" num="15" siteid="$siteid" order="listorder ASC"}
							{loop $data $r}
							<li class="">
								<a href="{$r[url]}" class="leva" title="{seotitle_catname($r[catname])}">{$r[catname]}</a>
								<ul style="display: none;">
									{pc:content action="category" catid="$r[catid]" num="15" siteid="$siteid" order="listorder ASC" return="data2"}
									{loop $data2 $r1}
									<li><a href="{$r1[url]}" title="{seotitle_catname($r1[catname])}">{$r1[catname]}</a></li>
									{/loop}
									{/pc}
								</ul>
							</li>
							{/loop}
							{/pc}
						</ul>
					</div>
				</div>
				<div class="block hotnews_info">
					<div class="title clearfix">
						<h4>安卓ROM新增机型</h4><a class="more" href="{more_url(6)}">更多机型»</a> 
					</div>
					<div class="block-content newbrands clearfix">
						<ul>
							{php $data1 = get_newrom(6,2)}
							{loop $data1 $r1}
							<li class="noborder">
								<div class="cat_img"><img src="{$r1['image']}" alt="{seotitle_catname($r1[catname])}" title="{seotitle_catname($r1[catname])}"/></div>
								<div class="cat_txt">
									<div class="cat_title clearfix"><a href="{$r1['url']}" title="{seotitle_catname($r1[catname])}">{$r1['catname']}</a></div>
									{pc:content action="category" catid="$r1['catid']" num="3" siteid="$siteid" order="listorder ASC" return="data2"} 
									{loop $data2 $r2}
									<div>{short_catname($r2['catname'],$r1['catname'])}：{$r2['items']}</div>
									{/loop}
									{/pc}
									{php $hits = get_cathits($r1['catid'])}
									<div>总下载：{php echo $hits}</div>
								</div>
							</li>
							{/loop}
						</ul>
					</div>
					<div class="title clearfix">
						<h4>最新安卓ROM</h4><a class="more" href="{more_url(6)}">更多ROM»</a> 
					</div>
					<div class="block-content newroms clearfix">
						<ul>
							{pc:content action="lists" catid="6" num="4" order="inputtime DESC"}
							{loop $data $key $val}
							<li>
								<div class="thumb">
									<a href="{$val['url']}" target="_blank" title="{$val['title']}"><img src="{thumb($val['thumb'],63,105)}" alt="{$val['title']}" title="{$val['title']}"></a>
								</div>
								<div class="rom_info">
									{php $parent = get_parentcat($val['catid'])}
									<p>适用机型：<a href="{more_url($parent['catid'])}" title="{seotitle_catname($parent['catname'])}">{$parent['catname']}</a></p>
									<p>安卓版本：{$val['version']}</p>
									<p>ROM大小：{$val['filesize']}</p>
									<p>收录时间：{date('Y-m-d',$val['inputtime'])}</p>
									<p><a href="{$val['url']}" target="_blank" title="{$val['title']}">点击下载</a></p>
								</div>
							</li>
							{/loop}
							{/pc}
						</ul>
					</div>
				</div>
			</div>
			<div class="adr_related clearfix">
				<div class="block adr_col2">
					<div class="title clearfix">
						<h4>HTC ROM</h4> <a class="more" href="{more_url(7)}">更多HTC ROM»</a>
					</div>
					<div class="block-content">
						<ul>
							{pc:content action="lists" catid="7" num="11" order="inputtime DESC"}
							{loop $data $key $val}
							<li>
								{php $h_md=pc_base::load_model('hits_model');$get_db=$h_md->get_one(array('hitsid'=>"c-12-".$val['id']));$views=$get_db['views'];}
								<span class="stat">{date('m/d',$val['inputtime'])}</span>
								<span class="title"><a href="{$val['url']}" target="_blank" title="{$val['title']}">{str_cut($val['title'],60,'...')}</a></span>
							</li>
							{/loop}
							{/pc}
						</ul>
					</div>
				</div>
				<div class="block adr_col2 last">
					<div class="title clearfix">
						<h4>三星ROM</h4> <a class="more" href="{more_url(9)}">更多三星ROM»</a>
					</div>
					<div class="block-content">
						<ul>
							{pc:content action="lists" catid="9" num="11" order="inputtime DESC"}
							{loop $data $key $val}
							<li>
								{php $h_md=pc_base::load_model('hits_model');$get_db=$h_md->get_one(array('hitsid'=>"c-1-".$val['id']));$views=$get_db['views'];}
								<span class="stat">{date('m/d',$val['inputtime'])}</span>
								<span class="title"> <a href="{$val['url']}" target="_blank" title="{$val['title']}">{str_cut($val['title'],60,'...')}</a></span> 
							</li>
							{/loop}
							{/pc}
						</ul>
					</div>
				</div>
				<div class="block adr_col2">
					<div class="title clearfix">
						<h4>MOTO ROM</h4> <a class="more" href="{more_url(8)}">更多MOTO ROM»</a>
					</div>
					<div class="block-content">
						<ul>
							{pc:content action="lists" catid="8" num="11" order="inputtime DESC"}
							{loop $data $key $val}
							<li>
								{php $h_md=pc_base::load_model('hits_model');$get_db=$h_md->get_one(array('hitsid'=>"c-12-".$val['id']));$views=$get_db['views'];}
								<span class="stat">{date('m/d',$val['inputtime'])}</span>
								<span class="title"><a href="{$val['url']}" target="_blank" title="{$val['title']}">{str_cut($val['title'],60,'...')}</a></span>
							</li>
							{/loop}
							{/pc}
						</ul>
					</div>
				</div>
				<div class="block adr_col2 last">
					<div class="title clearfix">
						<h4>中兴ROM</h4> <a class="more" href="{more_url(43)}">更多中兴ROM»</a>
					</div>
					<div class="block-content">
						<ul>
							{pc:content action="lists" catid="43" num="11" order="inputtime DESC"}
							{loop $data $key $val}
							<li>
								{php $h_md=pc_base::load_model('hits_model');$get_db=$h_md->get_one(array('hitsid'=>"c-1-".$val['id']));$views=$get_db['views'];}
								<span class="stat">{date('m/d',$val['inputtime'])}</span>
								<span class="title"> <a href="{$val['url']}" target="_blank" title="{$val['title']}">{str_cut($val['title'],60,'...')}</a></span> 
							</li>
							{/loop}
							{/pc}
						</ul>
					</div>
				</div>
				<div class="block adr_col2">
					<div class="title clearfix">
						<h4>华为ROM</h4> <a class="more" href="{more_url(42)}">更多华为ROM»</a>
					</div>
					<div class="block-content">
						<ul>
							{pc:content action="lists" catid="42" num="11" order="inputtime DESC"}
							{loop $data $key $val}
							<li>
								{php $h_md=pc_base::load_model('hits_model');$get_db=$h_md->get_one(array('hitsid'=>"c-12-".$val['id']));$views=$get_db['views'];}
								<span class="stat">{date('m/d',$val['inputtime'])}</span>
								<span class="title"><a href="{$val['url']}" target="_blank" title="{$val['title']}">{str_cut($val['title'],60,'...')}</a></span>
							</li>
							{/loop}
							{/pc}
						</ul>
					</div>
				</div>
				<div class="block adr_col2 last">
					<div class="title clearfix">
						<h4>LG ROM</h4> <a class="more" href="{more_url(44)}">更多LG ROM»</a>
					</div>
					<div class="block-content">
						<ul>
							{pc:content action="lists" catid="44" num="11" order="inputtime DESC"}
							{loop $data $key $val}
							<li>
								{php $h_md=pc_base::load_model('hits_model');$get_db=$h_md->get_one(array('hitsid'=>"c-1-".$val['id']));$views=$get_db['views'];}
								<span class="stat">{date('m/d',$val['inputtime'])}</span>
								<span class="title"> <a href="{$val['url']}" target="_blank" title="{$val['title']}">{str_cut($val['title'],60,'...')}</a></span> 
							</li>
							{/loop}
							{/pc}
						</ul>
					</div>
				</div>
			</div>
		</div>
		<div class="os_adr_right">
			<div class="adr_interactive clearfix">
				<a href="{more_url(31)}" class="question"><em>是菜鸟还不懂如何刷机？</em><strong>我要学习</strong></a> 
				<a href="{more_url(6)}" class="question Share"><em>发烧友想找更多的ROM？</em><strong>我要ROM</strong></a> 
			</div>
			<div class="block adr_soft">
				<div class="title clearfix">
					<ul>
						<li class="on" id="PARm0" onmouseover="PARMenu(0);">安卓ROM推荐 </li>
						<li class="out" id="PARm1" onmouseover="PARMenu(1);">刷机教程推荐 </li>
					</ul>
				</div>
				<div class="block-content clearfix">
					<dl class="recommend_blcok">
						<dd style="display: block;" class="recommend0" id="recommend0">
							<ol>
								{pc:content action="hits" catid="6" day="1" num="5" order="dayviews DESC"}
								{loop $data $key $val}
								<li class="clear-fix {if ($n == 1)}first{/if}">
									<p class="pic">
										<a href="{$val['url']}" title="{$val['title']}" target="_blank">
											<span>
												<img src="{thumb($val['thumb'],75,75)}" alt="{$val['title']}" title="{$val['title']}">
											</span>
										</a>
									</p>
									<div class="info">
										<h6><a href="{$val['url']}" title="{$val['title']}" target="_blank">{$val['title']}</a></h6>
										<p class="detail">{if ($n == 1)}{str_cut($val['description'],80,'...')}{else}{str_cut($val['description'],40,'...')}{/if}</p>
									</div>
								</li>
								{/loop}
								{/pc}
							</ol>
							<a href="{more_url(6)}" class="more" target="_blank">更多Android 安卓ROM»</a>
						</dd>
						<dd class="recommend1" style="display:none" id="recommend1">
							<ol>
								{pc:content action="hits" catid="31" day="1" num="10" order="dayviews DESC"}
								{loop $data $key $val}
								<li class="clearfix first">
									<a href="{$val['url']}" title="{$val['title']}" target="_blank">{$val['title']}</a><span class="Author">{date('m/d',$val['inputtime'])}</span>
								</li>
								{/loop}
								{/pc}
							</ol>
						</dd>
					</dl>
					<script type="text/javascript">
					function GetObj(objName){
						if(document.getElementById){
							return eval('document.getElementById("' + objName + '")');
						}else if(document.layers){
							return eval("document.layers['" + objName +"']");
						}else{
							return eval('document.all.' + objName);
						}
					}
					function PARMenu(index,flag){
						for(var i=0;i<2;i++){/* max-4 */
							if(GetObj("recommend"+i)&&GetObj("PARm"+i)){
								GetObj("recommend"+i).style.display = 'none';
								GetObj("PARm"+i).className = "out";
							}
						}
						if(GetObj("recommend"+index)&&GetObj("PARm"+index)){
							GetObj("recommend"+index).style.display = 'block';
							GetObj("PARm"+index).className = "on";
						}
					}
				</script>
				</div>
			</div>
			<div class="block adr_jobs">
				<div class="title">
					<h4>安卓刷机教程</h4><a class="more" href="{more_url(31)}" target="_blank">更多教程»</a>
				</div>
				<div class="block-content">
					<ul>
						{pc:content action="lists" catid="31" num="10" order="inputtime DESC"}
						{loop $data $key $val}
						<li> <span class="title"> <a href="{$val['url']}" target="_blank" title="{$val['title']}">{str_cut($val['title'],60,'...')}</a> </span> </li>
						{/loop}
						{/pc}
					</ul>
				</div>
			</div>
			<div class="block adr_jobs">
				<div class="title">
					<h4>安卓手机资讯</h4><a class="more" href="{more_url(38)}" target="_blank">更多资讯»</a>
				</div>
				<div class="block-content">
					<ul>
						{pc:get sql="SELECT * FROM phpcms_news a,phpcms_news_data b WHERE a.id=b.id and a.catid in('39,40') ORDER BY a.inputtime DESC" num="10" cache="3600" return="data"}
						{loop $data $key $val}
						<li> <span class="title"> <a href="{$val['url']}" target="_blank" title="{$val['title']}">{str_cut($val['title'],60,'...')}</a> </span> </li>
						{/loop}
						{/pc}
					</ul>
				</div>
			</div>
			<div class="block adr_jobs">
				<div class="title">
					<h4>安卓手机行情</h4><a class="more" href="{more_url(41)}" target="_blank">更多行情»</a>
				</div>
				<div class="block-content">
					<ul>
						{pc:get sql="SELECT * FROM phpcms_news a,phpcms_news_data b WHERE a.id=b.id and a.catid in('41') ORDER BY a.inputtime DESC" num="10" cache="3600" return="data"} 
						{loop $data $key $val}
						<li> <span class="title"> <a href="{$val['url']}" target="_blank" title="{$val['title']}">{str_cut($val['title'],60,'...')}</a> </span> </li>
						{/loop}
						{/pc}
					</ul>
				</div>
			</div>
		</div>
	</div>
</div>
<div id="OSC_Links" class="container">
	<div class="bmodule" id="links">
		<h3 class="caption">+ 友情链接</h3>
		{pc:link action="type_list" siteid="$siteid" linktype="1" order="listorder DESC" return="dat"}
		<p>
			{loop $dat $v}
			<a href="{$v[url]}" target="_blank" >{$v['name']}</a>
			{/loop}
		</p>
		{/pc}
	</div>
</div>
<!-- Baidu Button BEGIN -->
<script type="text/javascript" id="bdshare_js" data="type=slide&amp;img=8&amp;pos=right&amp;uid=6740063" ></script>
<script type="text/javascript" id="bdshell_js"></script>
<script type="text/javascript">
document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000);
</script>
<!-- Baidu Button END -->
{template "content","footer"}
